/**
 * 
 */
package game.kill.biz;

import game.kill.enums.GameStepEnum;
import game.kill.enums.PlayerActionEnum;
import game.kill.enums.PlayerRoleEnum;

import java.util.List;
import java.util.Map;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;

/**
 * @author macbook
 *
 */
public class GameRuleConfig {

	
	public static Map<String,List<String>> stepRoleMap = Maps.newHashMap();
	
	public static Map<String,List<String>> stepActionMap = Maps.newHashMap();
	
	static {
		
		List<String> darkWorkRole = Lists.newArrayList();
		darkWorkRole.add(PlayerRoleEnum.killer.name());
		darkWorkRole.add(PlayerRoleEnum.police.name());
		stepRoleMap.put(GameStepEnum.dark_work.name(), darkWorkRole);
		
		List<String> freeSpeakRole = Lists.newArrayList();
		freeSpeakRole.add(PlayerRoleEnum.killer.name());
		freeSpeakRole.add(PlayerRoleEnum.police.name());
		freeSpeakRole.add(PlayerRoleEnum.everyman.name());
		stepRoleMap.put(GameStepEnum.free_speak.name(), freeSpeakRole);
		
		List<String> voteRoleRole = Lists.newArrayList();
		voteRoleRole.add(PlayerRoleEnum.killer.name());
		voteRoleRole.add(PlayerRoleEnum.police.name());
		voteRoleRole.add(PlayerRoleEnum.police.name());
		stepRoleMap.put(GameStepEnum.vote.name(), voteRoleRole);
		
		
		List<String> darkWorkAction = Lists.newArrayList();
		darkWorkAction.add(PlayerActionEnum.discuss.name());
		darkWorkAction.add(PlayerActionEnum.kill.name());
		darkWorkAction.add(PlayerActionEnum.check.name());
		stepActionMap.put(GameStepEnum.dark_work.name(), darkWorkAction);
		
		List<String> freeSpeakAction = Lists.newArrayList();
		freeSpeakAction.add(PlayerActionEnum.speak.name());
		stepActionMap.put(GameStepEnum.free_speak.name(), freeSpeakAction);
		
		List<String> voteRoleAction = Lists.newArrayList();
		voteRoleAction.add(PlayerActionEnum.vote.name());		
		stepActionMap.put(GameStepEnum.vote.name(), voteRoleAction);
		
		
		
		
	}	
	
	
	
	
	
}
